using System;
using System.Collections.Generic;
using System.Text;

namespace ElteIk.RoboSoccer.Core.Physics
{
	public class Rectangle : Polygon
	{
		public Rectangle()
		{
		}

		public Rectangle(Vector2D center)
			: base(center)
		{
		}

		public Rectangle(Vector2D center, float width, float height)
			: base(center)
		{
			this.width = width;
			this.height = height;
			Points.Add(new Vector2D(- width / 2, - height / 2));
			Points.Add(new Vector2D(- width / 2, + height / 2));
			Points.Add(new Vector2D(+ width / 2, + height / 2));
			Points.Add(new Vector2D(+ width / 2, - height / 2));
		}

		private float width;
		public float Width
		{
			get { return width; }
		}

		private float height;
		public float Height
		{
			get { return height; }
		}	
	}
}
